]> dgit.raspbian.org Git - gnome-shell.git/commit
fileUtils: Don't collect files as `dir`
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 23 May 2025 22:30:16 +0000 (00:30 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 24 May 2025 00:43:29 +0000 (02:43 +0200)
commit68c235decf23ee76e70dfbfe6bc5e5458f0413ba
tree650a11e68327dde2a80a6fed5195cb93c4baa3e4
parentaaeccdf674ddea90a54bc360d32849554bf4a730
fileUtils: Don't collect files as `dir`

The method collects the children of subdirectories, regardless of
the children's file types.

It is therefore odd to return files as `dir`, in particular as the
method is indeed used to collect plain files (session modes and
search providers) as well as directories (installed extensions and
extension updates).

Change the returned objects to return files as `file`, which
works for both regular files and directories.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3721>
js/misc/fileUtils.js
js/ui/extensionSystem.js
js/ui/remoteSearch.js
js/ui/sessionMode.js